package com.example.demo.service.Impl;

import com.example.demo.map.FacultyMapper;
import com.example.demo.service.FacultyService;
import com.example.demo.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class FacultyServiceImpl implements FacultyService {
    @Override
    public int queryByName(String facName) {
        SqlSession sqlSession = MybatisUtil.getSqlSession();
        FacultyMapper mapper = sqlSession.getMapper(FacultyMapper.class);
        int i = mapper.queryByName(facName);
        return i;
    }
}
